<?php

/**
 * Created by PhpStorm.
 * User: santo.lee
 * Date: 2018-12-07
 * Time: 05:28
 */

namespace App\Helpers\Api;

use EasyWeChat\Factory;

trait MiniProgramTrait
{
	protected function miniProgram()
	{
		$config = config('wechat.mini_program.default');
		$app = Factory::miniProgram($config);
//        $app['request'] = $request;
		return $app;
	}

	protected function official() {
        $config = config('wechat.official_account.default');
        $app = Factory::officialAccount($config);
        return $app;
    }
}